package com.fruit.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.filter.DelegatingFilterProxy;


/**
 * 程序入口
 *
 * @author shibeilei
 * @version 2017.06.08 17:40
 */
@ImportResource("spring/*.xml")
@SpringBootApplication(scanBasePackages ={"com.fh","com.fruit"})
public class WebProvider{

	
	
	
    /**
     * 主方法
     *
     * @param args args
     * @throws Exception Exception
     */
    public static void main(String[] args) throws Exception {
        SpringApplication.run(WebProvider.class, args);
        synchronized (WebProvider.class) {
            while (true) {
                try {
                	WebProvider.class.wait();
                } catch (Throwable e) {
                	e.printStackTrace();
                }
            }
        }
    }
}
